package com.ty.springbootjapthymeleaf.service;

import com.ty.springbootjapthymeleaf.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface IUserService {

    public User login(String usrName , String usrPassword);
    public void saveUser(User user);
    public void deleteUser(Long usrId);
    public User getUser(Long usrId);
    // 按条件进行分页查询（动态sql）
    public Page<User> findUsers(String usrName, Long roleId, Pageable pageable);


}
